package com.ctshk.rpc.order.scenic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctshk.rpc.order.scenic.entity.ScenicOrderCollection;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 门票收款明细 Mapper 接口
 * </p>
 *
 * @author 张志朋
 * @since 2021-02-24
 */
public interface ScenicOrderCollectionMapper extends BaseMapper<ScenicOrderCollection> {


    @Update("update t_scenic_order_collection set reject_info=#{remake} ,status = 1 where collection_number = #{collectionNumber}")
    Integer updateStatusByCollectionNumber(@Param("remake") String remake,@Param("collectionNumber") String collectionNumber);

    /**
     * 查询支付明细
     * @param orderId
     * @return
     */
    @Select("select * from t_scenic_order_collection where order_id = #{orderId}")
    List<ScenicOrderCollection> quertOrderId(@Param("orderId") Long orderId);
}
